﻿using Base.Infrastructure.Dto.Request.Login;
using Base.Infrastructure.Dto.Response;
using Base.Infrastructure.EFCore.MySql;
using Base.Infrastructure.Tools.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Base.Service.Interface
{
    [Provider]
    public interface ILoginService
    {
        /// <summary>
        /// 这里是用户登录
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        ApiResult Logins(LoginRequestDto dto);

        /// <summary>
        /// code判断用户是否登录
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        Login? CheckLogin(string code);
    }
}
